home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 October: Mac OS SDK / Dev.CD Oct 96 SDK / Dev.CD Oct 96 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DUProjects / Talker / Sources / Selection.cpp < prev    next >
Encoding:
Text File  |  1996-08-16  |  2.1 KB  |  103 lines  |  [TEXT/CWIE]

  1. //    Copyright © 1995 Apple Computer, Inc. All rights reserved.
  2. //    Release Version:    $ 1.0d1 $
  3.  
  4. //========================================================================
  5. #ifndef SELECTION_H
  6. #include "Selection.h"        // CTalkerSelection
  7. #endif
  8.  
  9. #ifndef PART_H
  10. #include "Part.h"        // CTalkerPart
  11. #endif
  12.  
  13. #ifndef FRAME_H
  14. #include "Frame.h"        // CTalkerFrame
  15. #endif
  16.  
  17. #ifndef CONTENT_H
  18. #include "Content.h"
  19. #endif
  20.  
  21. // ----- Part Layer -----
  22. #ifndef FWUTIL_H
  23. #include "FWUtil.h"
  24. #endif
  25.  
  26. #ifndef FWITERS_H
  27. #include "FWIters.h"
  28. #endif
  29.  
  30. #ifndef FWPRESEN_H
  31. #include "FWPresen.h"
  32. #endif
  33.  
  34. // ----- Foundation Layer -----
  35. #ifndef FWSUSINK_H
  36. #include "FWSUSink.h"
  37. #endif
  38.  
  39. #ifndef FWSTREAM_H
  40. #include "FWStream.h"
  41. #endif
  42.  
  43. // ----- OpenDoc Includes -----
  44. #ifndef SOM_Module_OpenDoc_StdProps_defined
  45. #include <StdProps.xh>
  46. #endif
  47.  
  48. #ifndef SOM_ODShape_xh
  49. #include <Shape.xh>
  50. #endif
  51.  
  52. //========================================================================
  53. #ifdef FW_BUILD_MAC
  54. #pragma segment talker
  55. #endif
  56.  
  57. FW_DEFINE_AUTO(CTalkerSelection)
  58. //========================================================================
  59. CTalkerSelection::CTalkerSelection(Environment* ev, CTalkerContent* content)
  60.   :    FW_CSelection(ev, false, false),
  61.     fTalkerContent(content)
  62. {
  63.     FW_END_CONSTRUCTOR
  64. }
  65.  
  66. //-------------------------------------------------------------------------
  67. CTalkerSelection::~CTalkerSelection()
  68. {    
  69.     FW_START_DESTRUCTOR
  70. }
  71.  
  72. //-------------------------------------------------------------------------
  73. void 
  74. CTalkerSelection::CloseSelection(Environment* ev)
  75. {
  76. }
  77.  
  78. //-------------------------------------------------------------------------
  79. void 
  80. CTalkerSelection::ClearSelection(Environment* ev)
  81. {
  82. }
  83.  
  84. //-------------------------------------------------------------------------
  85. void 
  86. CTalkerSelection::SelectAll(Environment* ev)
  87. {
  88. }
  89.  
  90. //-------------------------------------------------------------------------
  91. FW_Boolean 
  92. CTalkerSelection::IsEmpty(Environment* ev) const
  93. {
  94.     return TRUE;            // no data to copy
  95. }
  96.  
  97. //-------------------------------------------------------------------------
  98. FW_CContent* 
  99. CTalkerSelection::GetSelectedContent(Environment* ev)
  100. {
  101.     return fTalkerContent;
  102. }
  103.